package com.adou.d5.cla.d3;

public class StudentOper {
    private Student student;

    public StudentOper(){}

    public StudentOper(Student student) {
        this.student = student;
    }

    public void printPass(){
        if(student.getScore() >= 60) {
            System.out.println(student.getName() + "：学生成绩及格");
        } else {
            System.out.println(student.getName() + "：学生成绩不及格");

        }
    }
}
